import { BaseToolTip } from "../../../../../com/mui/controls/BaseToolTip";
import { ResouceConst } from "../../../../component/gconst/ResouceConst";
//class BackgroundTooltip
    
    export  class BackgroundTooltip extends BaseToolTip
    {
        constructor()
        {
            super();
            this.scaleBg = ResouceConst.getScaleBitmap("ToolTipBg");
            super.addChild(this.scaleBg);
            super.addChild(contentContainer);
            return;
        }

        protected /* override */ updateSize(arg1: number, arg2: number): void
        {
            super.updateSize(arg1, arg2);
            this.scaleBg.width = _width;
            this.scaleBg.height = _height;
            return;
        }

        public /* override */ addChild(arg1: Object /* flash.display.DisplayObject */): Object /* flash.display.DisplayObject */
        {
            if (contentContainer == arg1) 
            {
                super.addChild(arg1);
            }
            else 
            {
                this.contentContainer.addChild(arg1);
            }
            return arg1;
        }

        protected /* var */scaleBg: Object /* flash.display.Bitmap */;
    }
